package de.bazinga.rotw.input;

import com.jme.input.action.InputActionEvent;
import com.jme.input.action.KeyInputAction;
import com.jmex.game.state.GameStateManager;

public class GameActions extends KeyInputAction {

	public GameActions() {
		
	}
	
	public void performAction(InputActionEvent evt) {
        if(evt.getTriggerName().equals("gotoMenu")) {
        	GameStateManager.getInstance().getChild("gameState").setActive(false);
        	GameStateManager.getInstance().getChild("ingameMenu").setActive(true);
		}
    }
}